/* 
 * File:   Physics.cpp
 * Author: Elevator
 * 
 * Created on 4 Июнь 2013 г., 22:46
 */

#include "Physics.h"
#include "Box2dEngine.h"

namespace physics {

	IEngine* Physics::_engine;

	void Physics::CreateEngine( Vec2 gravity ) {
		_engine = new Box2dEngine( gravity );
	}

	void Physics::DestroyEngine( ) {
		delete _engine;
		_engine = 0;
	}

	IEngine* Physics::GetEngine( ) {
		return _engine;
	}
}
